package cn.bdqn.service;



import cn.bdqn.mapper.UserDoctorArticleMapper;
import cn.bdqn.pojo.UserDoctorArticle;

import java.util.Map;

public interface RpcUserLikeArticleService {
    /***
     * 根据条件查询用户收藏记录
     * @param map 查询条件
     * @return
     * @throws Exception
     */
    UserDoctorArticle findUserLikeArticleByQuery(Map map) throws Exception;

    /***
     * 添加用户收藏记录
     * @param userDoctorArticle
     * @return
     * @throws Exception
     */
    boolean addUserLikeArticle(UserDoctorArticle userDoctorArticle) throws Exception;

    /***
     * 修改收藏状态
     * @param userDoctorArticle
     * @return
     * @throws Exception
     */
    boolean updateUserLikeArticle(UserDoctorArticle userDoctorArticle) throws Exception;
}
